<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8" />
	<title>首页</title>
	<link rel="stylesheet" href="/Public/css/bootstrap.min.css" />
	<link rel="stylesheet" href="/Public/css/common.css" />
	<link rel="stylesheet" href="/Public/admin/admin.css" />
	<!-- style start -->
	
	<style>
		.table th{width: 140px;text-align:left;padding-right:20px;}
		.table td{width: auto;}  

	</style>

</head>
<body>
<!-- header start -->
<nav class="navbar navbar-inverse  ">
	<div class="container">
		<div class="navbar-header">
			<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
				<span class="sr-only">Toggle navigation</span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</button>
			<a class="navbar-brand" href="#">JiyCms</a>
		</div>
		<div id="navbar" class="navbar-collapse collapse">
			<ul class="nav navbar-nav">
				<li class="active"><a href="#">起始页</a></li>
				<li><a href="#about">系统</a></li>
				<li><a href="#contact">内容管理</a></li>
				<li><a href="#contact">统计</a></li>
			</ul>
		</div><!--/.nav-collapse -->
	</div>
</nav>
<!-- end header -->

<!-- content start -->
	<div class="content">
		<div class="container">
			<!-- 左边菜单 -->
			<div class="col-sm-3 col-md-2 sidebar">
				 <div class="nav-bar">
	 <a href="/admin.php/Index" class="nav-item">起始页</a>
	 <a href="<?php echo U('System/index');?>" class="nav-item">系统管理</a>
	 <a href="<?php echo U('Admin/index');?>" class="nav-item">管理员</a>
	 <a href="<?php echo U('Admin/role');?>" class="nav-item">管理员角色</a>
	 <a href="<?php echo U('Contents/index');?>" class="nav-item">内容管理</a>
	 <a href="<?php echo U('Product/index');?>" class="nav-item">产品管理</a>
	 <a href="<?php echo U('Menu/index');?>" class="nav-item">导航管理</a>
	 <a href="<?php echo U('Banner/index');?>" class="nav-item">广告管理</a>
	 <a href="<?php echo U('Member/index');?>" class="nav-item">会员管理</a>
	 <a href="<?php echo U('Single/index');?>" class="nav-item">单页管理</a>
 </div>
			</div>
			<!--右边内容-->
			<div class="col-md-9">
				 
	<ol class="breadcrumb">
	  <li><a href="/admin.php/Index">起始页</a></li> 
	  <li class="active"><?php echo ($page_title); ?></li>
	</ol> 
	<div class="panel">
		<div class="panel-heading">
			<div class="col-md-6">
				<a href="/admin.php/Product/add_data" class="btn btn-info">新增</a>
			</div> 
				<div class="col-md-6">
					<form action="" class="navbar-form navbar-left">
					<div class="form-group">
						<input type="text"  class="form-control" />
					</div>
						<input type="submit" value="查询" class="btn btn-info" />
					</form> 
				</div> 
			<div class="clearfix"></div>
		</div>

		<table class="table table-bordered">
			<thead class="bg-info">
				<tr>
					<th style="width:40px;"><input type="checkbox"  id="checkAll" /></th>
					<th>#</th>
					<th>名称</th>
					<th>角色</th>
					<th>状态</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($list)): foreach($list as $key=>$val): ?><tr data-id="<?php echo ($val["id"]); ?>">
						<td><input type="checkbox" name="sel[]"  value="<?php echo ($val["id"]); ?>" id="" /></td>
						<td><?php echo ($val["id"]); ?></td>
						<td><?php echo ($val["user_name"]); ?></td>
						<td>-</td>
						<td><?php echo ($val['status'] == 1?'启用中':'禁用'); ?></td>
						<td>
							<a href="javascript:void(0)" class="btn btn-info btn-edit">编辑</a>
							<a href="javascript:void(0)" class="btn btn-danger">删除</a>
						</td>
					</tr><?php endforeach; endif; ?>
			</tbody>
		</table>
	</div>

			</div>
		</div>
	</div>
<!-- end content -->

<!-- footer start -->

	<div class="footer">
		<div class="container">底部信息</div>
	</div>
<!-- end footer -->

<!-- script start -->
<script src="/Public/js/jquery-1.11.3.min.js"></script>	
<script src="/Public/js/bootstrap.min.js"></script>	

<script> 

</script>


</body>
</html>